package com.sm.service;

import com.sm.dao.FinancialDao;
import com.sm.entity.Financial;
import com.sm.entity.FinancialRec;
import org.apache.ibatis.annotations.Insert;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface FinancialService {

    //获取当天财务总表
    public List<FinancialRec> findFinancialRec(String dateStr)throws Exception;

    //获取最近7天利润总表
    public List<FinancialRec> findSevenDaysFRProfit()throws Exception;

    //获取最近7天收入总表
    public List<FinancialRec> findSevenDaysFRIncome()throws Exception;

    //获取该月份的账单
    public List<Financial> findFinancial(Integer month)throws Exception;

    //添加账单
    public Integer addFinancial(Financial financial)throws Exception;

    //最近7天的账单统计 利润 应收 应付 未收 未付
    public List<FinancialRec> financialStatistics()throws Exception;

    //获取该天利润
    public Double todayProfit(String dateStr)throws Exception;

    //获取最新的账单
    public List<Financial> findNowFinancial(Integer limit,Integer month)throws Exception;

    //获取当天账单数量
    public Integer findFinancialCount()throws Exception;
}
